package com.though.alipay.entity;

import java.util.List;

public class ResponseRefund {

	private Response alipay_trade_refund_response;

	private String sign;
	
	public Response getAlipay_trade_refund_response() {
		return alipay_trade_refund_response;
	}

	public void setAlipay_trade_refund_response(Response alipay_trade_refund_response) {
		this.alipay_trade_refund_response = alipay_trade_refund_response;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public static class Response {
		private String buyer_logon_id;
		private String buyer_user_id;
		private String code; // 10000:为成功   其他：失败
		private String fund_change; // 本次退款是否发生了资金变化 Y N
		private String gmt_refund_pay; // 退款支付时间
		private String msg;
		private String sub_code;
		private String sub_msg;
		private String out_trade_no; // 商户订单号
		private double refund_fee; // 退款总金额
		private String store_name; // 交易在支付时候的门店名称
		private String trade_no; // 支付宝交易号
		private List<DetailRefund> refund_detail_item_list;

		public String getBuyer_logon_id() {
			return buyer_logon_id;
		}

		public void setBuyer_logon_id(String buyer_logon_id) {
			this.buyer_logon_id = buyer_logon_id;
		}

		public String getBuyer_user_id() {
			return buyer_user_id;
		}

		public void setBuyer_user_id(String buyer_user_id) {
			this.buyer_user_id = buyer_user_id;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getFund_change() {
			return fund_change;
		}

		public void setFund_change(String fund_change) {
			this.fund_change = fund_change;
		}

		public String getGmt_refund_pay() {
			return gmt_refund_pay;
		}

		public void setGmt_refund_pay(String gmt_refund_pay) {
			this.gmt_refund_pay = gmt_refund_pay;
		}

		public String getMsg() {
			return msg;
		}

		public void setMsg(String msg) {
			this.msg = msg;
		}

		public String getOut_trade_no() {
			return out_trade_no;
		}

		public void setOut_trade_no(String out_trade_no) {
			this.out_trade_no = out_trade_no;
		}

		public double getRefund_fee() {
			return refund_fee;
		}

		public void setRefund_fee(double refund_fee) {
			this.refund_fee = refund_fee;
		}

		public String getStore_name() {
			return store_name;
		}

		public void setStore_name(String store_name) {
			this.store_name = store_name;
		}

		public String getTrade_no() {
			return trade_no;
		}

		public void setTrade_no(String trade_no) {
			this.trade_no = trade_no;
		}

		public List<DetailRefund> getRefund_detail_item_list() {
			return refund_detail_item_list;
		}

		public void setRefund_detail_item_list(List<DetailRefund> refund_detail_item_list) {
			this.refund_detail_item_list = refund_detail_item_list;
		}

		public String getSub_code() {
			return sub_code;
		}

		public void setSub_code(String sub_code) {
			this.sub_code = sub_code;
		}

		public String getSub_msg() {
			return sub_msg;
		}

		public void setSub_msg(String sub_msg) {
			this.sub_msg = sub_msg;
		}
	}

	public static class DetailRefund {
		private double amount; // 该支付工具类型所使用的金额
		private String fund_channel; // 交易使用的资金渠道
		private String fund_type; // 渠道所使用的资金类型,目前只在资金渠道(fund_channel)是银行卡渠道(BANKCARD)的情况下才返回该信息(DEBIT_CARD:借记卡,CREDIT_CARD:信用卡,MIXED_CARD:借贷合一卡)
		private double real_amount; // 渠道实际付款金额

		public double getAmount() {
			return amount;
		}

		public void setAmount(double amount) {
			this.amount = amount;
		}

		public String getFund_channel() {
			return fund_channel;
		}

		public void setFund_channel(String fund_channel) {
			this.fund_channel = fund_channel;
		}

		public String getFund_type() {
			return fund_type;
		}

		public void setFund_type(String fund_type) {
			this.fund_type = fund_type;
		}

		public double getReal_amount() {
			return real_amount;
		}

		public void setReal_amount(double real_amount) {
			this.real_amount = real_amount;
		}
	}
}
